package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 云硬盘监控
 * </p>
 *
 * @author chenjl
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class NormStorageMonitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 资源池id
     */
    @ApiModelProperty(value = "资源池id")
    private Long configId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    /**
     * UUID
     */
    @ApiModelProperty(value = "UUID")
    private String uuid;

    /**
     * 磁盘总容量G
     */
    @ApiModelProperty(value = "磁盘总容量G")
    private Float total;

    /**
     * 已用容量G
     */
    @ApiModelProperty(value = "已用容量G")
    private Float used;

    /**
     * 每秒读流量（kb)
     */
    @ApiModelProperty(value = "每秒读流量")
    @TableField("READ")
    private Float read;

    /**
     * 每秒写流量（kb)
     */
    @ApiModelProperty(value = "每秒写流量")
    @TableField("WRITE")
    private Float write;

    /**
     * 设备名称，disk-total表示虚机下所有
     */
    @ApiModelProperty(value = "设备名称")
    private String device;


}
